<%@ tag isELIgnored="false" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ attribute name="onchange" required="false" %>

  <select name="idClasse" size="1" onChange="${onchange}">
     <option/>
     <logic:iterate id="current" name="CLASSE">
     	<option value="<bean:write name="current"/>"
     	<%
	     	String idClasse = request.getParameter("idClasse");
	     	if (idClasse == null)
	     		idClasse = (String) request.getAttribute("idClasse");
	     	if (idClasse != null)
	     	{
	     		if (idClasse.equals(current))
	     		{
     	%> selected<%
	     		}
	     	}
     	%>
     	><bean:write name="current"/></option>
     </logic:iterate>
  </select>
